﻿using EmployeeCard.IRepository;
using EmployeeCard.IServices;
using EmployeeCard.Model.Models;
using EmployeeCard.Repository;
using EmployeeCard.Services.Base;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace EmployeeCard.Services
{
    public class AdvertisementServices : BaseService<Advertisement>, IAdvertisementServices
    {
        //依赖注入仓储
        private IAdvertisementRepository _dal;
        public AdvertisementServices(IAdvertisementRepository dal)
        {
            _dal = dal;
            base._baseDal = dal;
        }

        /// <summary>
        /// 求和
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <returns></returns>
        public int Sum(int x, int y)
        {
            return _dal.Sum(x, y);
        }

    }
}
